package com.ecare.mobile.remote;

import com.ecare.mobile.remote.fallback.UserRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 通过网关代理服务 访问时不要带 GATEWAY_PRIFIX  前缀
 */
@FeignClient(value = "service-gateway",fallback = UserRemoteFallback.class)
public interface UserRemote {
    String GATEWAY_PRIFIX = "suser";
    @GetMapping(GATEWAY_PRIFIX+"/user/info/{name}")
    String getUser(@PathVariable(value = "name")String name);
}
